package com.example.cardserver.mapper;

import com.example.cardserver.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    Integer insert(User user);

    User findById(Integer id);
    User findByPhone(String phone);
    User findByCode(String code);
    User findByComment(String comment);

    Integer updatePasswordById(Integer id, String password);

    Integer updateAvatarById(@Param("id") Integer id,@Param("avatar") String avatar);
    
    Integer getBonus(Integer id);
    
    
}
